package com.leoman.dao;

import com.leoman.entity.ResumeImage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * ResumeImageDao
 * Created by 涂奕恒 on 2016/12/21 0021 下午 5:09.
 */
public interface ResumeImageDao extends JpaRepository<ResumeImage, Integer>, JpaSpecificationExecutor<ResumeImage> {

    @Query("select a from ResumeImage a where a.userResume.id = ?1")
    List<ResumeImage> findListByUserResumeId(Integer userResumeId);
}